package com.alawn.security.service;

import com.alawn.framework.services.enums.ResourceType;
import com.alawn.framework.services.security.Resource;
import com.alawn.framework.services.system.Dictionary;
import com.baomidou.mybatisplus.extension.service.IService;
import org.primefaces.model.TreeNode;

import java.util.List;

/**
 * <p>
 * 资源表 服务类
 * </p>
 *
 * @author johnny
 * @since 2019-02-27
 */
public interface ResourceService extends IService<Resource> {

    public TreeNode treeDataModel(Resource selected, ResourceType... filter);

    public TreeNode treeDataModel(ResourceType... filter);

    public List<Resource> createButtons(List<Dictionary> dictionaries);
}
